<c:if test="true"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:nxp="http://nuxeo.org/nxweb/pdf">
<c:if test="#{widget.mode != 'pdf'}">#{messages[field]}</c:if>
<c:if test="#{widget.mode == 'pdf'}">
  <nxp:html>#{messages[field]}</nxp:html>
</c:if>
</c:if>